<template>
        <div id="test">
            <button @click="dianji">按钮</button>
            <div id="box">

            </div>
        </div>
</template>
<script>
import {getlist} from "../../src/request/index.js"
export default {
    data(){
        return{

        }
    },
    methods:{
        dianji(){
          let data={
            username:"admin",
            password:"123456"
          }
        getlist(data).then(res=>{
            console.log(res.data);
        })

          
        }
    }
}
</script>
<style scoped>
#box{
    width: 2rem;
    height: 2rem;
    background-color:black;
}
</style>